package com.example.quickstartprovider.controller;


import com.example.quickstartprovider.domain.po.User;
import com.example.quickstartprovider.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dcs
 * @since 2025-02-20
 */
@RestController
@RequestMapping("/user")

public class UserController {

    @Autowired
    private IUserService userService;

    @GetMapping("/all")
    public List<User> getAllUser() {
        return userService.list();
    }
}
